package page.app.messageActivityIndex;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.ui.ExpectedConditions;

import com.customize.reporter.WebReporter;

import basicTool.WaitTool;
import io.appium.java_client.AppiumDriver;
import page.app.AbstractAppPage;
import page.app.discover.DiscoverPage;

public class InvestArticlesDetailPage extends AbstractAppPage{
	@FindBy(xpath="//android.webkit.WebView/android.view.View[@index=0]|//UIAWebView/UIAStaticText[@value=2]")
	private WebElement articleTitle;
	
	@FindBy(xpath="//android.widget.TextView[@text='分享']")
	private WebElement shareArticlesButton;
	
	@FindBy(xpath="//android.widget.TextView[@text='关闭']")
	private WebElement closeInvestArticlesButton;
	
	public InvestArticlesDetailPage(AppiumDriver appiumDriver){
		super(appiumDriver);
		WaitTool.waitFor(appiumDriver, ExpectedConditions.visibilityOf(articleTitle), DefaultWaitElementTime4Page);
	}
	public DiscoverPage clickcloseInvestArticlesButton() throws Exception{
		return click(closeInvestArticlesButton, DiscoverPage.class);
	}
	

}
